package com.cmwa.solution.sys.attach.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cmwa.solution.annotation.MybatisDao;
import com.cmwa.solution.base.entity.SearchParam;
import com.cmwa.solution.sys.attach.entity.AttachRelExtVo;

/**
 * 附件扩展属性表数据访问层
 * 
 * @author ex-chenxh
 * @date 2019-02-15 13:36:34
 */
@MybatisDao
public interface AttachRelExtDao {

	
	public void insertAttachRelExt(AttachRelExtVo attachInfoExt);
	
		
		
	public void physicDeleteAttachRelExtById(@Param("id") String id);
	
		
		
	public void logicDeleteAttachRelExtById(@Param("id") String id);
	
		
		
	public void updateAttachRelExtById(AttachRelExtVo attachInfoExt);
	
		
		
	public List<AttachRelExtVo> attachRelExtListPage(SearchParam sp);
	
	
		
	public AttachRelExtVo getAttachRelExtById(@Param("extId") String extId);
	
	
	
	public void batchInsertAttachRelExt(@Param("list")List<AttachRelExtVo> list);
	
	
	
	public void batchInsertAttachRelAndExt(@Param("list")List<AttachRelExtVo> list);
	
	/**
	 * 根据业务类型和ID删除所有附件及扩展属性
	 * @param relType
	 * @param relId
	 */
	public void deleteAttachRelAndExt(@Param("relType")String relType, @Param("relId")String relId);
}
